//
//  UIColor+Extend.m
//  Test
//
//  Created by lizq on 15/11/20.
//  Copyright © 2015年 lizq. All rights reserved.
//

#import "UIColor+Extend.h"

@implementation UIColor (Extend)

+ (UIColor *)colorWithHex:(NSInteger)hex alpha:(CGFloat)alpha {
  return [UIColor colorWithRed:((hex & 0xff0000) >> 16) / 255.0
                         green:((hex & 0xff00) >> 8) / 255.0
                          blue:(hex & 0xff) / 255.0
                         alpha:alpha];
}

@end
